import { axios } from '../../utils/request'

/**
 * 生产订单
 */
const api = {
    save: '/procedurePrice/save',
    submit:'/procedurePrice/submit',
    examine: '/procedurePrice/examine',
    delete: '/procedurePrice/delete',
    getcode: '/procedurePrice/getCode',
    changeEnableState: '/procedurePrice/changeEnableState',

}
/**
 * 保存
 */
export function save(data) {
    return axios({
        url: api.save,
        method: "post",
        data: data
    })
}

/**
 * 审核
 */
export function examine(data) {
    return axios({
        url: api.examine,
        method: "get",
        params: data
    })
}

/**
 * 审核
 */
 export function changeEnableState(data) {
  return axios({
      url: api.changeEnableState,
      method: "get",
      params: data
  })
}

/**
 * 删除
 */
export function remove(data) {
    return axios({
        url: api.delete,
        method: "DELETE",
        params: data
    })
}

/**
 * 获取单据编号
 */
export function getCode(data) {
    return axios({
        url: api.getcode,
        method: "get",
        params: data
    })
}

/**
 * 单据提交
 */
 export function submitOrder (data) {
    return axios({
        url: api.submit,
        method: "get",
        params: data
    })
}